package com.nanyang.tms.mq.bootstrap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

import com.nanyang.tms.common.config.HwObsConfig;

@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.nanyang.tms.mq.listener","com.nanyang.tms.common"})
public class TmsMqApplication implements CommandLineRunner{
	
	    @Autowired
		private HwObsConfig hwObsConfig;
    public static void main(String[] args) {
        SpringApplication.run(TmsMqApplication.class, args);
    }

	@Override
	public void run(String... args) throws Exception {
		System.out.println(hwObsConfig.getAk());
		
	}
}
